package cn.csc.module.distribute.controller.admin.downline.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 分销下线信息 Excel 导出 Request VO", description = "参数和 DistributeDownlinePageReqVO 是一致的")
@Data
public class DistributeDownlineExportReqVO {

    @ApiModelProperty(value = "上级分销人ID")
    private BigInteger parentId;

    @ApiModelProperty(value = "下级用户ID")
    private BigInteger childId;

    @ApiModelProperty(value = "分佣层级（1-一级，2-二级, 3-三级）")
    private Byte level;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "订单数")
    private Integer orderCount;

    @ApiModelProperty(value = "产生佣金总额")
    private BigDecimal commissionTotal;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
